﻿cmake_minimum_required(VERSION 3.10)
project(RtspServer)

#set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread ")

# set(CMAKE_BUILD_TYPE DEBUG)
# SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb")
# SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")

# set(INCLUDE_DIR /usr/local/include)
# set(LIB_DIR /usr/local/lib)
# include_directories(${INCLUDE_DIR})
# link_directories(${LIB_DIR})

add_executable(RtspServer
        main.cpp
        Live/Buffer.cpp
        Live/InetAddress.cpp
        Live/MediaSessionManager.cpp
        Live/MediaSession.cpp
        Live/AACFileMediaSource.cpp
        Live/H264FileMediaSource.cpp
        Live/Rtp.cpp
#        Live/RtpMediaSource.cpp
        Live/MediaSource.cpp
#        Live/AACSink.cpp
#        Live/H264Sink.cpp
        Live/H264FileSink.cpp
        Live/AACFileSink.cpp

        Live/Sink.cpp
        Live/RtspConnection.cpp
        Live/RtspServer.cpp
        Live/TcpConnection.cpp
        Scheduler/Event.cpp
        Scheduler/EventScheduler.cpp
        Scheduler/Poller.cpp
        Scheduler/SelectPoller.cpp
        Scheduler/SocketsOps.cpp
        Scheduler/Thread.cpp
        Scheduler/ThreadPool.cpp
        Scheduler/Timer.cpp
        Scheduler/UsageEnvironment.cpp
        )